package homework;

import java.util.HashMap;
import java.util.Map;

public class HomeWork4 {
    public static void main(String[] args) {
        String[] arr = {"aa@sohu.com","bb@163.com","cc@sina.com"};
        Map<String,String> map = new HashMap<>();
        for (String str: arr){
            map.put(str.split("@")[0],str.split("@")[1]);
        }
        System.out.println(map);
    }
}
